date_get_year

Returns the year corresponding to the datetime.

语法:

date_get_year(date);


参数 描述
date 用于检查的日期时间。


返回: Real(实数)


描述

This function returns the year of the given datetime.


例如:

myyear = date_get_year(date_current_datetime());

This would set "myyear" to the current year.


上一页: Date And Time
下一页: date_hour_span
© Copyright YoYo Games Ltd. 2018 All Rights Reserved